public class Decrypt {
    String toDecrypt(String source, int password) {
        char c[] = source.toCharArray();
        for (int i = 0; i < c.length; i++) {
            if (c[i] >= 'a' && c[i] <= 'z') {
                int mima ='z'-('z'+password-c[i])%26;
                c[i] = (char) mima;
            }
            else {
                return new String("error");
            }
        }
        return new String(c);
    }
}
